.class Lcom/kuguo/ad/u;
.super Ljava/lang/Thread;


# instance fields
.field final synthetic a:Lcom/kuguo/ad/g;


# direct methods
.method constructor <init>(Lcom/kuguo/ad/g;)V
    .locals 0

    iput-object p1, p0, Lcom/kuguo/ad/u;->a:Lcom/kuguo/ad/g;

    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 3

    const-string v0, "android__log"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "b cooId == "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/kuguo/ad/u;->a:Lcom/kuguo/ad/g;

    invoke-static {v2}, Lcom/kuguo/ad/g;->a(Lcom/kuguo/ad/g;)Lcom/kuguo/ad/ap;

    move-result-object v2

    iget-object v2, v2, Lcom/kuguo/ad/ap;->n:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    const-string v0, "android__log"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "b channelId == "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/kuguo/ad/u;->a:Lcom/kuguo/ad/g;

    invoke-static {v2}, Lcom/kuguo/ad/g;->a(Lcom/kuguo/ad/g;)Lcom/kuguo/ad/ap;

    move-result-object v2

    iget-object v2, v2, Lcom/kuguo/ad/ap;->o:Ljava/lang/String;

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    :try_start_0
    iget-object v0, p0, Lcom/kuguo/ad/u;->a:Lcom/kuguo/ad/g;

    invoke-static {v0}, Lcom/kuguo/ad/g;->b(Lcom/kuguo/ad/g;)Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Context;->getAssets()Landroid/content/res/AssetManager;

    move-result-object v0

    const-string v1, "kuguo_res"

    invoke-virtual {v0, v1}, Landroid/content/res/AssetManager;->list(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_0

    array-length v0, v0

    if-nez v0, :cond_1

    :cond_0
    const-string v0, "android__log"

    const-string v1, "App has not resource picture under assets director , cancel request Ad!!!!!!!"

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    :goto_0
    return-void

    :catch_0
    move-exception v0

    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V

    :cond_1
    iget-object v0, p0, Lcom/kuguo/ad/u;->a:Lcom/kuguo/ad/g;

    invoke-static {v0}, Lcom/kuguo/ad/g;->a(Lcom/kuguo/ad/g;)Lcom/kuguo/ad/ap;

    move-result-object v0

    iget-object v1, p0, Lcom/kuguo/ad/u;->a:Lcom/kuguo/ad/g;

    invoke-static {v1}, Lcom/kuguo/ad/g;->c(Lcom/kuguo/ad/g;)I

    move-result v1

    iput v1, v0, Lcom/kuguo/ad/ap;->m:I

    iget-object v0, p0, Lcom/kuguo/ad/u;->a:Lcom/kuguo/ad/g;

    invoke-static {v0}, Lcom/kuguo/ad/g;->d(Lcom/kuguo/ad/g;)V

    goto :goto_0
.end method
